-- GENERATED SPELL FOR [Blackhand Iron Guard] --


function spell0_10319(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(15655,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10319', 2348, 1)
end

function spell1_10319(pUnit, Event) --@Shield Wall,Self--
pUnit:FullCastSpellOnTarget(15062,pUnit)
pUnit:RegisterEvent('Sorts_10319', 10289, 1)
end

function Sorts_10319(pUnit, Event)
local choix_sorts_10319 = math.random(0, 1)
if choix_sorts_10319 == 0 then
pUnit:RegisterEvent('spell0_10319', 1, 1)
end
if choix_sorts_10319 == 1 then
pUnit:RegisterEvent('spell1_10319', 1, 1)
end
end

function mob10319_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10319', math.random(1500, 3000), 1)
end

function mob10319_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10319_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10319_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10319, 1, 'mob10319_Action')
RegisterUnitEvent(10319, 2, 'mob10319_Leave')
RegisterUnitEvent(10319, 3, 'mob10319_Kill')
RegisterUnitEvent(10319, 4, 'mob10319_Die')
